package com.bwie.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @className: GroupOrder
 * @Description: TODO
 * @version: v1.８.0
 * @author: 刘茂锴
 * @date: 2025/10/2 10:10
 */
@Data
public class GroupOrder {
    //主键ID
    private Integer id;
    //团购活动ID
    private Integer activityId;
    //用户ID
    private Integer userId;
    //订单编号
    private String orderNo;
    //商品ID
    private Integer productId;
    //购买数量
    private Integer quantity;
    //订单总金额
    private BigDecimal totalAmount;
    //实际支付金额
    private BigDecimal payAmount;
    //订单状态(0:待支付,1:已支付,2:已取消)
    private Integer orderStatus;
    //拼团状态(0:拼团中,1:拼团成功,2:拼团失败)
    private Integer groupStatus;
    //是否为团长(0:否,1:是)
    private Integer isLeader;
    //参团的团会话ID
    private Integer groupSessionId;
    //支付时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;
    //取消时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date cancelTime;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;


}
